﻿using ERP.Team.WarehouseManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;

namespace ERP.ERPSystem.Homepage
{
    /// <summary>
    /// 首页-xzc
    /// </summary>
    public class HomePagesServices:ApplicationService, IHomePagesServices
    {
        private readonly IRepository<Inventory> _inventoryRepositroy;

        public HomePagesServices(IRepository<Inventory> inventoryRepositroy)
        {
            _inventoryRepositroy = inventoryRepositroy;
        }
        /// <summary>
        /// 查询出库存现有量的数据
        /// </summary>
        /// <returns></returns>
        public async Task<List<Inventory>> GetInventory()
        {
            var inventoryList = await _inventoryRepositroy.GetListAsync();
            return inventoryList;
        }
    }
}
